package au.edu.unsw.editingtool.global;

public class EditingToolGlobalConstant {
	
	public static final int mySQLDuplicateErrorCode = 1062;
	public static final int affiliationNullValueKey	= 1;
	public static final String GlobalConstantNull = "GlobalConstantNull";
	
	public static final String redirectPageWaitingForReview = "this work is edited by other author";
	
	public static final String requestUsername = "username";
	public static final String requestPassword = "password";
	public static final String requestCommand  = "ctrl";
	public static final String requestPid	   = "pid";
	public static final String requestFormData = "formData";
	public static final String requestCommandType = "commandType";
	public static final String requestSessionID = "sessionID";
	public static final String requestFormAction = "action";
	
	public static final String commandReview = "review";
	public static final String commandClaim = "claim";
	public static final String commandEdit = "edit";
	public static final String commandAttach = "attach";
	public static final String commandPreview = "preview";
	
	public static final String claimRequested = "requested";
	public static final String claimCommandAdd = "add";
	public static final String claimCommandApprove = "approve";
	public static final String claimCommandDeny    = "deny";
	
	public static final String authorGroupID = "1";
	public static final String reviewerGroupID = "2";
	public static final String adminGroupID = "3";
	
	public static final String userStatusActive = "4";
	public static final String userStatusInActive = "5";
	
	public static final String claimStatusClaimed = "6";
	public static final String claimStatusRequested = "7";
	
	public static final String editingpoolStatusEditing = "8";
	public static final String editingpoolStatusSubmit  = "9";
	public static final String editingpoolStatusReview  = "10";
	
	public static final String sessionAttrUsername = "username";
	public static final String sessionAttrLid	   = "lid";

	public static final String buttonTypeSubmit = "submit";
	public static final String buttonTypeCancel = "cancel";
	public static final String buttonTypePreview = "preview";

	public static final String fileSeparator  = System.getProperty("file.separator");
	public static final String configFilePath = "conf/editingtool.properties";
	public static final String tempFileDir	  = "temp";
	public static final String xslFileDir	  = "xsl";
	
	public static final String valetDocFormData = "formdata";
}
